|
Author |
Thread Statistics | Show CCP posts - 1 post(s) |
Shin Chogan
Blueprint Haus Get Off My Lawn
2
|
Posted - 2012.07.13 11:36:00 -
[1] - Quote
contrera wrote:Is anyone else having an issue or found a fix to TEA not removing ppl from jabber if they leave corp/alliance?
Yeah ... need some code patches and a new cron job :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
2
|
Posted - 2012.07.14 14:30:00 -
[2] - Quote
Sansa Star wrote:What about my question? :(
What exactly do you want it to do ? ... If they don't match any rules delete ALL the additional groups even if they aren't controlled by TEA ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
2
|
Posted - 2012.07.15 01:55:00 -
[3] - Quote
Shin Chogan wrote:contrera wrote:Is anyone else having an issue or found a fix to TEA not removing ppl from jabber if they leave corp/alliance? Yeah ... need some code patches and a new cron job :) I'll put up the required changes somewhere when I get a chance.
Patch path to forum code/Sources/TEA_jabber.php with :
https://dl.dropbox.com/u/926348/TEA_jabber.patch
(there are some other little fixes in there too including replacing ' with _ since something somewhere doesn't like ' )
using something like patch -p0 < TEA_jabber.patch
and then place this file in your path to forum code/TEA folder :
https://dl.dropbox.com/u/926348/TEA_Jabber_Cron_Access.php
and add a cron job eg : * */1 * * * user /usr/bin/php5 path to forum code/TEA_Jabber_Cron_Access.php
Things in bold Italics are to be replaced by whatever is needed in your setup |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.09 10:15:00 -
[4] - Quote
Can people using TEA 1.3 build 169 please check their {smf_prefix}tea_cache table ? Do you notice that very little is being cached ? Or is it just me ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.09 16:07:00 -
[5] - Quote
Anabaric wrote:Now if only it could integrate with mumble...
Use this to link to mumble :
http://gitorious.org/mumble-scripts/mumble-scripts/trees/master/Authenticators/SMF/2.0
It is a python script that uses the smf db as an ICE authenticator for mumble. NB ... Not my work just what I use :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.09 16:26:00 -
[6] - Quote
Troy Aihaken wrote:I have 7 pages worth of cache pages in my database, so probably just you mate :)
hmmm ... interesting ... I tried reverting to the original r169 build on a dev board and still have the same issue. I put in some debug the problem was in get_xml in TEAC.php.
method_exists($this, 'set_cache') is returning false
I added in some get_class_methods ( $this ) in various places and found that things fell apart in function get_api_characters
it does this to work out which class to use : in class TEAC
$check = $this -> is_new($userid, $api); if($check) $class = $this -> newc; else $class = $this -> oldc;
and then calls
$class -> get_api_characters($userid, $api);
putting var_dump(get_class_methods ( $this )); just above this line gives an array of about 57 methods including get_cache and set_cache.
In most cases this then effectively calls TEACN::get_api_characters.
I put a get_class_methods($this) in TEACN::get_api_characters and low and behold there are only something like 17 methods not including the get and set_cache methods. These are defined in TEA which extends TEAC which is what I believe is the issue as the is_new function does this :
if(empty($this -> newc)) { $this -> newc = new TEACN; $this -> oldc = new TEACO; }
ie creates new TEACN and TEACO objects.
I hope that all makes sense ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.09 16:46:00 -
[7] - Quote
StuofBeef wrote:Hey all, just found this page and got TEA 99% installed, works spot on for new registrations and rules work ok. Only issue i'm having is for existing members when go into Profile > temars eve api, you can enter the id and v-code but there is no submit button to look up the character, so when you hit the drop down no characters are listed. Trying to hit "Change profile" just brings up "[ERROR] Api must be of Type Character and show ALL toons :)" I thought maybe it was an issue with my theme but it also happens on the default theme. Here is a screenshot. https://www.dropbox.com/s/49tlsqorkphug7k/no%20submit.jpgThanks.
you shouldn't have a submit button ... you do just hit change profile ... once you've done that the dropdown is populated so you can pick a character and then hit change profile again. That error message is because the api you provide must have "Character" set to All and "Type" set to Character in CCP's api pages :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.11 16:07:00 -
[8] - Quote
Troy can you do me a favour stop your TEA_Cron.php cronjob and put
var_dump(method_exists($this, 'get_cache'));
After line 207 : $cache = FALSE; and before 208 : if($type != 'standings' && $type != 'alliances' && method_exists($this, 'get_cache'))
Then run TEA_Cron.php manually or even safer make a copy and use it to update a single member ... change the line : $tea -> update_api(FALSE); so that FALSE is replaced by a valid member id.
Are all the values printed to the screen "true" or are some "false" ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.11 16:13:00 -
[9] - Quote
Doh I new I'd forgotten something ...
The line to add is in TEAC.php :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.11 16:19:00 -
[10] - Quote
1/ Add : var_dump(method_exists($this, 'get_cache'));
After line 207 : $cache = FALSE; and before 208 : if($type != 'standings' && $type != 'alliances' && method_exists($this, 'get_cache'))
in the file TEAC.php
2/ Then run TEA_Cron.php manually
Optionally If you change the word FALSE to a number that is a valid Member ID on your forums in TEA_Cron.php it will only update a single account
I'm interested in the output :) |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.11 16:40:00 -
[11] - Quote
Troy Aihaken wrote:bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true) bool(true) bool(true) bool(false) bool(false) bool(false) bool(true) bool(true) bool(false) bool(false) bool(false) bool(false) bool(false) bool(true) bool(true)
LOL
Cool ... so that confirms that for a significant number of calls the caching methods aren't in scope so it can't put into or fetch from the cache :)
That said you had a lot more trues than I did when I ran my tests but that could have been because I was looking at this when the api system was having a bad day recently and giving a load of runtime errors
You might want to remove that line from TEAC.php now or you are going to get a LOT of cron spam |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.13 14:11:00 -
[12] - Quote
The way the system works is that the cron job will do as many accounts as it can in a period of time less than 1 minute. You then have the TEA_Cron.php script run every minute.
so in /etc/cron.d/smf I have :
* * * * * user /usr/bin/php5 path/TEA_Cron.php |
Shin Chogan
Blueprint Haus Get Off My Lawn
4
|
Posted - 2013.01.15 11:33:00 -
[13] - Quote
ShadowandLight wrote:hey troy~
using your file i have 2 issues
1 - the get api is very slow on the forums, sometimes it times out. Clicking on the "eve api" button sometimes fixes it. When people reg they often get emails before the page tells them they are registered.
There are 2 parts to this ... first up sometimes the api servers can be pretty slow but I also believe that there are some problems with the code that compound this as things are not being cached when they should be.
Quote: 2 - i too am finding sometimes people are told they dont have the right API, even when I checked it myself.
It is possible vital api calls are timing out which would result in it not having the info it needs. Also make sure it is an api key that lists ALL the characters on the account and not just one of them. |
Shin Chogan
Blueprint Haus Get Off My Lawn
5
|
Posted - 2013.01.15 15:19:00 -
[14] - Quote
ShadowandLight wrote: If there is any improvement to be had in the code it would help a ton, as this is a pretty annoying problem atm.
The errors you linked are symptomatic of when the CCP servers return an Application error rather than valid xml. I was writing a bit of test code and made a mistake and managed to cause this type of response which has given me a direction to look into in the TEA code to see if there is something it is doing to cause these responses or if it is just CCP's api servers sometimes have issues.
I've been working on some more changes that certainly appear to make it use the cache when it is supposed to, updating profiles certainly happen a lot quicker now (the more rules you have the worse it gets) ... and just running a "check all" through the forums and it is now checking about 20 at a time rather than about 5 :) I'm not sure if it is ready for primetime just yet though
Quote: Also with all the API's i've used in testing i've made sure its "all characters" as the option.
Hey it was worth checking ... You would be amazed at how many people miss that |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 15:32:00 -
[15] - Quote
You might want to try this version out.
Temars Eve API auth for smf <- google drive link.
I believe it fixes the lack of caching and based on the last couple of days of testing it "MAY" have reduced the Runtime errors. I've also added some nasty hacks to manage any Runtime errors that it does get (who am I kidding ... All my changes are a bunch of nasty hacks )
For your added pleasure (if you run a board for an alliance) there is a new rule you can add that will match the CEO's of the specifed Alliance.
Disclaimer :- This all appears to work for me but it may not work for you ... backup your existing stuff first :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 16:40:00 -
[16] - Quote
Nutbolt wrote:Updated to this version and all hell broke loss :)
Ran the check all thing, and after quite a while it failed when it got to an API key which it stated as: API SCREWED
Runtime Error:
API System Screwed - Can't fetch Roles: string(3030) " Server Error in '/' Application.
Well that is both a good and a bad thing :)
Good in that it has worked out that the CCP servers returned a Server Error in '/' Application Runtime error instead of valid xml and isn't going to do the wrong thing with that persons groups - usually remove them all :) Now it should just abort for that account and leave the groups as they were.
Bad in that while I've not been experiencing these errors while running it as a cronjob and I'd hoped I'd found a cause of them in the code I was obviously wrong :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 17:07:00 -
[17] - Quote
Nutbolt wrote:Looking at the profile pages of users, those with SCREWED apis are still in groups (I don't have a rule for invalid apis yet, but this suggests screwed is different to invalid so rule wouldn't apply?). Users whos api key is ok the status says checked. whereas those who api key is screwed state the status as OK.
And on a side note, one of those persons keys worked fine this morning, but now says screwed.
Yeah that all makes sense. That error is when CCP's servers return stuff that isn't xml so it has nothing to do with the validity of the api details just the inability of CCP to return useful (to the script) information. I'm delibrately aborting further work with that api key at that point and leaving the user in whatever groups they were in before. Loosing access due to CCP API server muckups is a bad thing in my opinion.
invalid api rules may or may not apply as it depends on exactly which api call results in the Application error and where in your rule list the invalid rule is ... but assuming it can get far enough then an invalid api rule "should" work fine. |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 19:22:00 -
[18] - Quote
Nutbolt wrote:Next question(s) is in regards to cron jobs: Assuming I am not using the jabber or TS3 stuff (yet), do I only need to run the 1 cron job (TEA_Cron.php)? If so how often do you suggest? I see a few pages back it was suggested to run every minute, but that seems a bit excessive?
I run it every minute ... I believe that was the original authors directions.
Quote: The output of the cron just gives me the login page for the forums. Assuming I am not logged in, it just directs me to login when trying to run the cron job. I assume this means its not being run. Any ideas? Thanks!
Huh ?? The cron job shouldn't output anything unless there is a problem. Where are you running it ? How are you running it ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 19:58:00 -
[19] - Quote
Nutbolt wrote:As long as I am logged in it outputs nothing (and I guess works), but if I try and access the the cron job (running it from the browser) while not logged in it just directs me to the login page. I am running the cron job from within cPanel using this command: curl --silent --compressed http://www.avalonproject.co.uk/forums/TEA/TEA_Cron.php >/dev/null 2>&1 (works for other cron jobs).
Hmmm interesting ... my understanding is that it is designed to run from a cron system ... at the command line absolutely no browser or curl should be involved. Obviously I may be wrong but at least this way you certainly don't need to be logged in :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.17 20:43:00 -
[20] - Quote
Nutbolt wrote:Shin Chogan wrote:Hmmm interesting ... my understanding is that it is designed to run from a cron system ... at the command line absolutely no browser or curl should be involved. Obviously I may be wrong but at least this way you certainly don't need to be logged in :) Any suggestions on how I do this? :) I don't have access to shell, or whatever it is. I have never had a problem before with cron jobs, including our current forums (in the procces of moving from EVEBB to SMF).
I'm afraid I don't use cPanel ... at a guess how about trying :- php full path to forums/TEA/TEA_Cron.php |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.21 09:49:00 -
[21] - Quote
Bah ... as this weekend has shown ... those Application Error 500's are still casusing chaos with peoples group memberships .... I thought I'd worked round them all, apparently not ... sorry. |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.21 17:36:00 -
[22] - Quote
Jognu wrote:Hi ! I try to install TEA today (with the last version from the google drive link) and I have now this error : Quote:ERROR: relation -½ smf_tea_groups -+ doesn't exist LINE 3: FROM smf_tea_groups ^ Fichier: www/Sources/TEA.php Ligne: 3156 Any ideas ? Thanks
Looks like the db wasn't updated ... have a look at your db tables ... do you see any tables with smf_tea_something ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.22 09:23:00 -
[23] - Quote
EveBB wrote:I've just installed the latest version from the google drive and get a number of errors when a person tries to register. This appears specifically when "Get Characters" is clicked.................... Quote:Strict Standards: Non-static method TEACN::get_xml() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 15
Strict Standards: Non-static method TEACN::get_site() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 20 There are more but I will not post them as I think the above may be enough. Thanks -EveBB-
That isn't something I've changed ... I'm guessing you've got error_reporting = E_ALL | E_STRICT or something like that in your php.ini
your probably want to remove the E_STRICT.
|
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.22 09:41:00 -
[24] - Quote
Jognu wrote:Shin Chogan wrote:Jognu wrote:Hi ! I try to install TEA today (with the last version from the google drive link) and I have now this error : Quote:ERROR: relation -½ smf_tea_groups -+ doesn't exist LINE 3: FROM smf_tea_groups ^ Fichier: www/Sources/TEA.php Ligne: 3156 Any ideas ? Thanks Looks like the db wasn't updated ... have a look at your db tables ... do you see any tables with smf_tea_ something ? Indeed, no tables with smf_tea_ ! This is possible to play a script or something to create the tables ?
I didn't make the original installer just modified some of the files ... Do you have shell access to the system ?
if you do I "think" the following should work but no guarantees :
make a copy of the Packages/TEA_1_3_0.tgz file - put it in a new folder in your home director and decompress it.
Copy the files esam_upgrade.php and tables.php to your forum directory (where index.php is) then run : php tables.php
fingers crossed you should now have some xxx_tea_ tables |
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.22 10:40:00 -
[25] - Quote
Jognu wrote:I try, and I receive a lot of : Quote:No database selectedError: Database modifications failed! Maybe no link with the problem but : this mod works with postgresql ?
Ah ... there doesn't appear to be any mention of a db requirement in the original docs BUT .... The code uses mysql_query calls which would lead me to conclude that it DOESN'T work with postgresql.
|
Shin Chogan
Blueprint Haus Get Off My Lawn
7
|
Posted - 2013.01.22 14:22:00 -
[26] - Quote
Troy Aihaken wrote:Hey guys, This time i come to you for help. Ive been looking at the code but im still baffuled. When i click run full members check i get this eroor:
Incorrect integer value: 'no error code' for column 'errorid' at row 1
Any suggestions?
anything showing in your apache error.log ... any more info regarding which file and line this shows up in ?
There looks to be 5 places in TEA.php where the column errorid shows up. |
Shin Chogan
Blueprint Haus Get Off My Lawn
10
|
Posted - 2013.01.24 13:38:00 -
[27] - Quote
Nutbolt wrote:On the subject of requests/suggestions: The link to the EVE API pages should really open up in a new tab, not in the same tab, as that's just silly :)
Are you talking about the link at the bottom on the Profile pages ? or during registration ? if the former then the version I posted "should" do that ... at least it does it for me ... there is a target="_blank" in the href. |
Shin Chogan
Blueprint Haus Get Off My Lawn
10
|
Posted - 2013.01.24 13:52:00 -
[28] - Quote
Nutbolt wrote:Shin Chogan wrote:Are you talking about the link at the bottom on the Profile pages ? or during registration ? if the former then the version I posted "should" do that ... at least it does it for me ... there is a target="_blank" in the href. In both its not doing it, and I have the most recent version from a few posts up. Odd. I know I can edit the files myself, just suggesting its added for both pages in the 'official' release as I have had a few corpies complaining about it lol.
In the version I posted a few days ago both the links have the requisite html in to open that link in a new tab. |
Shin Chogan
Blueprint Haus Get Off My Lawn
10
|
Posted - 2013.01.24 13:55:00 -
[29] - Quote
Jognu wrote:I switched from postgresql to MySQL, it works great !
I have a request : could you add the ability to register an account without the need of fill the API ? I didn't tick the "Is a Valid Api required to Register?", but when I try to register I have the error : "The API needs to show All characters on the account" (the ID and the verification code are blank and I didn't click the "Get Characters" button).
Thanks !
I'll look at that soonish ... I added the check for an account type key to try prevent people having toons in red corps on the same account ... no need to make it easy for them :) I didn't even think that people would want to allow registration without an api. |
Shin Chogan
Blueprint Haus Get Off My Lawn
10
|
Posted - 2013.01.24 15:06:00 -
[30] - Quote
Jognu wrote:Shin Chogan wrote:Nutbolt wrote:On the subject of requests/suggestions: The link to the EVE API pages should really open up in a new tab, not in the same tab, as that's just silly :) Are you talking about the link at the bottom on the Profile pages ? or during registration ? if the former then the version I posted "should" do that ... at least it does it for me ... there is a target="_blank" in the href. The link CharacterInfo, CharacterSheet, FacWarStats open a new tab, but not the two links https://support.eveonline.com/api/Key.
Ah ... ha ... those would be the ones the original dev put it ... I turned the required options bit at the bottom into a link :)
I've updated the file with both fixes and updated the google drive file.
You will need to install again for the registration fix or look at mod_register.xml and modify Sources/Register.php appropriately :) |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
10
|
Posted - 2013.01.24 15:50:00 -
[31] - Quote
Nutbolt wrote:Shin Chogan wrote: Ah ... ha ... those would be the ones the original dev put in ... I turned the required options bit at the bottom into a link :)
I've updated the file with both fixes and updated the google drive file.
You will need to install again for the registration fix or look at mod_register.xml and modify Sources/Register.php appropriately :)
Now you've made the changes lol, may I suggest the links be changed to the one which creates a key with the correct mask. busy atm, but something like apiurl.com/createpredefined/58293498 (use correct mask). Makes registering that much easier and takes them straight to the create api page.
I did :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.01.25 13:24:00 -
[32] - Quote
You'll get that when one of the API calls doesn't get xml back (ie CCP's servers having another fit) Note that since I fixed the caching you'll now also have to wait an hour before it will get anything back except the same response :( |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.01.27 09:56:00 -
[33] - Quote
epsilonion wrote:YAY Figured the jabber thing out... I had the problems everyone else seemed to have.. when it saw both databases but did not update the user into openfire.. basically in the smf>admin>tea>jabber menu. the field: URL to Admin Page for Openfire eg. http://localhost:9090 : I had "127.0.0.1:9090 I changed the 127.0.0.1:9090 to this http://127.0.0.1:9090 this sorts out that problem... But does this remove the user if they leave corp automatically?
You need to run a 2nd cron Job for the file called TEA_Jabber_Cron_Access.php in the same directory as the TEA_Cron.php file. |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.03 10:03:00 -
[34] - Quote
eBOSHH wrote:after entering the API error occurs - Error 203 (Authentication failure.) Please help me solve this problem
That is exactly what it says on the tin ... either the keyID is wrong or the vCode is wrong :) - check you've not inadvertedly copying a space when you select from CCP's web pages.
On another note ... CCP's API servers are just completely broken for me at present I get the Application errors from them for practically every other Forum Account with the Cron jobs. It is practically not worth bothering with the Cron job. Best I can tell some of the servers in the cluster work ok otherwise everyone would be seing the issue and based on posts on these forums there are at least some people who it doesn't appear to be affecting everyone. CCP have at least acknowledged the bug I've raised and said it is a known issue. And CCP Prism has made a post to say they have put together a special team to investigate the issues.
https://forums.eveonline.com/default.aspx?g=posts&m=2539217#post2539217
So if you are using the version I posted and are seeing a load of API System Screwed - Can't fetch X kind of messages this (CCP's API servers being borked) is the problem. |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.03 10:50:00 -
[35] - Quote
Emiko Yorimasa wrote:Hi I made multiple clean install of SMF with TEA and tried to configure it with a Teamspeak server or XMPP openfire.
The SMF - TEA worked well but not when it come to communicate with TS3 and Openfire. Both service seems not able to retrieve the groups made in TS3 or Openfire. The crons show no errors on logs.
I have no idea on how to solve that problem
I've no Idea about TS3 as I don't use it but silly question on the Jabber front ... have you installed and set up the User Service plugin in openfire ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.03 12:17:00 -
[36] - Quote
Emiko Yorimasa wrote:Shin Chogan wrote: I've no Idea about TS3 as I don't use it but silly question on the Jabber front ... have you installed and set up the User Service plugin in openfire ?
I didn't know about that plugin, so I just install it, enable it, and copy and paste the secret key , the problem still here...
Have you added the ip addresses for that plugin ? I've got the real ip address of the server (which I believe shouldn't be necessary but I had it there for testing) and 127.0.0.1 due to the way this plugin works I believe you HAVE to have some ip addresses listed. If it doesn't work you may want to try using some of the examples on the builtin docs pages for that plugin - either using wget from the server if you have cli access to it or via your browser (don't forget to add your ip address to the list of allowed ones) and see what the result is.
Edit ... on the other hand I reckon that is a load of gumpf :) ... the user service is used to add users - it is needed it just doesn't provide a mechanism for getting a list of the groups in openfire ... that must be done via a direct db lookup, which implies that one of the following settings is wrong : Jabber Database host Jabber Database username Jabber Database password Jabber Database database
and it isn't connecting to the DB correctly. |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.04 13:46:00 -
[37] - Quote
yaxon wrote:forums at work all works, the problem is on my server
Your work forums have eve stuff in ?? - Nice job :)
I assume you mean it works when you access the forums from work but not from your home. This is irrelevant it is always the forums contacting CCP's api servers not your browser so where you are doing this from is immaterial. CCP's servers are majorly borked at present ... just keep trying eventually it will work :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.04 16:36:00 -
[38] - Quote
Specialist Franz wrote:So I'm having a minor well major issue here... when the cronjobs TEA_TS_Cron_Access.php and TEA/TEA_TS_Cron_Names.php run they don't appear to run properly and kick back an error.
public_html/Forums/TEA/TEA_TS_Cron_Access.php: line 1: ?php: No such file or directory public_html/Forums/TEA/TEA_TS_Cron_Access.php: line 3: syntax error near unexpected token `'../SSI.php'' public_html/Forums/TEA/TEA_TS_Cron_Access.php: line 3: `if (file_exists('../SSI.php') && !defined('SMF'))'
also when I try and run TEA_Cron.php I get this lovely error...
Could not open input file: public_html/forums/TEA/TEA_Cron.php
Any suggestions would be greatly appreciated.
Exaclty how are you running these commands ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.12 00:12:00 -
[39] - Quote
S Tein wrote:i am trying to create secondary rules to check for capital skills at level 3.
i add them and assign the rule to group "capital" but the checks don't add anyone to the capital group?
i know for a fact i have capital ships to level 3, so it should add me?
anyone had success with this that can help me out?
Thanks
Assuming you are talking about r170 that I released then : Wupps ... one bug I introduced in my defence there were another 2 that the original had in which meant it didn't look at the required skill level.
Both fixed and in release r171 :
Temars r171 |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.12 15:16:00 -
[40] - Quote
Tahnil wrote:Wouldn't it be nice if all active developers used the svn repository at code.google.com?
However, we recently added Jabber support to our forum. Works quite nice, but I've got one problem: if a user joins a new group in SMF, this isnGÇÿt updated in Openfire group memberships.
Our users may enter some groups that are interesting for them, and corresponding groups exist at the Openfire server. Also I have created matching rules (SMF -> Jabber). But it just doesn't work. I'm using r169 (original Temar, I think). I tried a full member check with and without the test user updating his Jabber tab in User Profile.
Any ideas?
Given that Temar appears to have stopped working on it or even looking at the svn repository how prey tell are we supposed to check stuff in without someone to add us as a member or the project ?
now on to your problem it is the saving of the Jabber tab that should do the updating of the groups. I believe I posted an additional cronjob and some changes to TEA_Jabber.php earlier in this thread that will allow for it to update the Jabber groups or you could install the latest version I've just posted (make a backup of your old one incase you don't like what I've done :)) |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.12 15:22:00 -
[41] - Quote
Tahnil wrote:Shin Chogan wrote:Tahnil wrote:Wouldn't it be nice if all active developers used the svn repository at code.google.com? Given that Temar appears to have stopped working on it or even looking at the svn repository how prey tell are we supposed to check stuff in without someone to add us as a member or the project ? Right. But you could start a new repository. I think Temar wouldnGÇÿt mind.
I did :)
https://github.com/barneycg/temars-eve-api though the latest changes are not checked in :( |
Shin Chogan
Blueprint Haus Get Off My Lawn
11
|
Posted - 2013.02.15 17:07:00 -
[42] - Quote
OK I've got r172 in the repo and ready to release but this one is something of a biggie.
I've added in checks to see if the same character ID is listed against a different api key when you are registering or adding a key or just updateing your tea profile. ie the cron job.
The idea here is to stop people from aquiring compromised keys and using them to register on the forum and masquerade as one of your genuine members (assuming of course that all your genuine members add all their api keys to your forums - of course this isn't too bad an idea in order to make spy alts work that little bit harder )
Of course nothing is simple ... Due to some design choices in the original ... deleting an api key from an account or even deleteing the forum account completely left behind characters in the db (and the api key entries too if you deleted the forum account). I've reworked things so that this stuff now gets deleted but it probably means that those of you with well established sites have DB's littered with these orphaned characters and this is going to cause a load of headaches.
I'm trying to work out how to automatically prune these during the installation of the mod.
|
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 07:36:00 -
[43] - Quote
Kunnilar wrote:Hi There
I'm using Shins repo , and thanks Shin for making one 1.3.0 r172
When trying to fetch character during forum registration
Strict Standards: Non-static method TEACN::get_xml() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 15
Strict Standards: Non-static method TEACN::get_site() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 20
Strict Standards: Non-static method TEACN::get_site_curl() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 30
Strict Standards: Non-static method TEACN::get_api_characters() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 51
Strict Standards: Non-static method TEACN::get_xml() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 15
Strict Standards: Non-static method TEACN::get_site() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 20
Strict Standards: Non-static method TEACN::get_site_curl() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\Sources\TEAC.php on line 30 API System Screwed - Can't fetch Toons : bool(false)
Can someone shed light on this?
Thanks
yeah ... you've got strict standards turned on in your php.ini file ... Technically speaking you shouldn't do what the original author did to handle both old and new api types. you probably want to change it to read :
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
Watch out for r172 I discovered a bug last night and haven't had time to check in the fix. People won't be able to register until it is fixed. |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 07:38:00 -
[44] - Quote
Dru Prime wrote:ancient thread I know but I've tried setting up temars api tonight and whenever I try to add my API it comes back with an "error()" i've tried switching TEA_xmlhttp to 644 permission but no luck.
not ancient at all :)
I'm going to need a little more to work with here anything else being displayed ? ... which version are you running ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 15:28:00 -
[45] - Quote
epsilonion wrote:Dru Prime wrote:ancient thread I know but I've tried setting up temars api tonight and whenever I try to add my API it comes back with an "error()" i've tried switching TEA_xmlhttp to 644 permission but no luck. It does this on fresh install if you look back over previous the pages it refers to the eve change to SSL for API fix that and it will run fine. Using https://api.eveonline.com instead of what your doing is http://api.eveonline.com.
Ah ... so that is the error it gives ... I missed that bit of info in the many pages of this thread :). |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 17:02:00 -
[46] - Quote
1.2.1 is very old ... it uses legacy keys only. I'm guessing you are using CAK keys which it won't understand. |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 19:12:00 -
[47] - Quote
Dru Prime wrote:Shin Chogan wrote:1.2.1 is very old ... it uses legacy keys only. I'm guessing you are using CAK keys which it won't understand. yeah I realized this and upgraded. I got 1.3.0 r169 but i'm not seeing a "get character" button when trying to add my api.
Unless you are registering the api entry page doesn't have a get character button ... you just enter the api and then save your profile. |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.18 20:05:00 -
[48] - Quote
Troy Aihaken wrote:TEA_xmlhttp.php make sure this is chmod to 644.
Oh yeah as a side note I worked out why you have to do that manually when the change log states Temar fixed it ... he moved the file to the TEA sub directory and the post install script that runs does the chmod on the old location :)
build 173 is now in my repo ... This fixes the TEA_xmlhttp.php permissions and the Member Registration bug I introduced in build 172 |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.20 16:19:00 -
[49] - Quote
Nutbolt wrote:This is a TEA question because it manages the user database (and I didn't know where else to ask :D):
So I have my openfire server, I have my forums, I have the link working, it creates openfire users via the forums etc... (yet to test cron job and a couple of other things, but lets assume they work). My question is, how do I remove someone's access to jabber (openfire) when they leave the corp?
Assuming you are using one of my versions with the TEA_Jabber_Cron_Access.php when they no longer have a group that matches one of the rules on the : /index.php?action=admin;area=tea;sa=jabber page then when the cron job runs the user will be removed from openfire.
Quote:
Also, is it possible to restrict a room so only a certain group can join it? I have had a search and stuff, but all I can find is restricting by user, and manually updating the user list.
Thanks!
Due to stupid limitations in the way openfire manages permissions it is not possible to grant a group access to a conference room it can only be done a user at a time. Doing something about this has been on my todo list for some time.
Oh and some info I discovered the hard way today ... don't upgrade to 3.8.0 of openfire. Conference rooms are broke ... they are still in the db but are not displayed after a restart :( I had to roll back to 3.7.1. |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.22 17:44:00 -
[50] - Quote
Nutbolt wrote:The API server is down while they attempt to fix it (they took it down this morning), however this has resulted in everyone losing access to the forums and Jabber. Is it easy/possible to add something so that if the server is down it doesn't run any of the rule checks until the server is back up?
I've already tried ... it is supposed to skip but I guess I've missed something. |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.02.26 00:15:00 -
[51] - Quote
ShadowandLight wrote:I am running into this error when trying to run the "reset names" command
==
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Brien' WHERE ID_MEMBER = 30' at line 1 File: /public_html/smf/Sources/TEA.php Line: 2645
Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.3. The above error might possibly go away if you execute the latest version of upgrade.php.
==
SMF searches mostly say such errors are bugs, not verison errors.
Also i ran a repair on the SMF database that showed everything was ok.
I've never tried this before ... ran it on my test board and it appeared to work - certainly didn't get that error. One thing I note from the line number you quite is that it would indicate you are not running the same version of TEA as I am, so what are you running ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.03.26 11:02:00 -
[52] - Quote
Jognu wrote:Shin Chogan wrote:Jognu wrote:I switched from postgresql to MySQL, it works great !
I have a request : could you add the ability to register an account without the need of fill the API ? I didn't tick the "Is a Valid Api required to Register?", but when I try to register I have the error : "The API needs to show All characters on the account" (the ID and the verification code are blank and I didn't click the "Get Characters" button).
Thanks ! I'll look at that soonish ... I added the check for an account type key to try prevent people having toons in red corps on the same account ... no need to make it easy for them :) I didn't even think that people would want to allow registration without an api. Hi Shin, Any changes for this ? If it's easy to change you can just give the line to modify and I do the trick ;)
There is an option on the tea settings page to choose if api keys are required for registration - it was already there ... clear this :)
Unfortunately there is also a bug with that option but I've fixed that
Version 175
This version also includes a new script to run that cleans up orphaned api keys and characters - it is in the TEA subdirectory called db_clean_up.php.
You can run this as and when you feel like it :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.03.26 11:07:00 -
[53] - Quote
Erwin Krym'L wrote:I just installed the latest rev (174), but feel utterly dumb atm. When setting up the TEA Mod, i enter the api key, which has full access on the char, but all I get as response is "A Full API Key is Required for Standings"...
Any ideas on that one?!??
(key has full access, is valid, no expiry, server to get data from is setup with https protocoll)
btw. I get that message even when I enter a totally messed up serveraddress to fetch the api data from?!??
is it the bit that says all in black ? :
The API info needed here is to get Standings A Full API Key is Required for Standings
If so then the second part isn't an error just information :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.03.26 12:37:00 -
[54] - Quote
Erwin Krym'L wrote:Exactly that message. Ok, then i misinterpreted it Thanks so far ... Still.... i'm not able to link my admin's forum account to my eve toon. When I enter the same API key on the profile's eve api config, I get "[ERROR] Api must be of Type Character and show ALL toons :)" When I enter another API key, i receive: "[ERROR] Character already listed with a different api key" (btw. I upgraded to rev 175) --- PROBLEM SOLVED. Although i dont have the slightest idea what may have changed -- it now works.
Glad you got it working.
I've just looked at the code for all this ... looks like the switch to CAK keys wasn't quite complete for this section and then I added in the checks for duplicate chars which could be confilicting too. I can't replicate your issues on my boards BUT there are more underlying broken things here that need fixing in the longer term :( |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.04.11 22:25:00 -
[55] - Quote
Demitrios wrote:Just tried to run the DB clear up, and PHP says... Quote:PHP Notice: Undefined variable: userid in /***/public_html/test/TEA/db_clean_up.php on line 26 PHP Notice: Undefined variable: userid in /***/public_html/test/TEA/db_clean_up.php on line 27
It also tries to kick out a webpage in a shell saying "The database value you're trying to insert does not exist: userid", which is obviously related to the PHP notice. Any ideas? Thanks, Demi
Hmmm ... that script shouldn't be trying to insert anything :)
when you say you tried to run it how exactly are you running it ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.04.20 13:07:00 -
[56] - Quote
epsilonion wrote:Jognu wrote:Did you try to remove the API key and add it again ? I had a similar problem for one of my users. Tried that, when I tried to login with an alt it did it then after a while it gave me the char names.. Ha figured it out. you have to refresh the page.. bloody stupid thing when you put the api info in it does not refresh and get the char names you have to press register then reenter the details, then click get chars, now it works and you can register. Any ideas as I know a few people are having this problem?
Having registered lots of accounts during various bits of testing I can honestly say I've never seen this and the only thing I've had to do is wait a bit on the api fetch to complete :). |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.04.20 13:09:00 -
[57] - Quote
Tahnil wrote:rootimus maximus wrote:Issue 1: forum profile > personalised picture > I want to use my Eve avatar. The image displays correctly, but when I save my settings it goes back to "no avatar" and doesn't disply one.
Issue 2: I can't see any Jabber options at all in the admin menu, although users can see a tab (with no options) on their profile.
TEA Version: 1.3.0 r168 SMF version: 2.0.1
Anyone able to help? I've got a similar problem in Version: 1.3.0 r171 The thing is, while most avatars in my forum are displayed correctly (image url is CCP imageserver) some avatars are not shown at all (image url points to avatar sub-folder of my SMF installation). Any ideas?
So the Eve avatar option works but images from the avatar subfolder don't work ? Sounds like a permissions problem on that avatar folder. Check your webserver logs.
|
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.06.08 10:01:00 -
[58] - Quote
Gah .. sorry ... I've been relying on the little flag to tell me when there are new posts and it would appear this was a mistake.
Sorry the last couple of months have been kinda hectic ... I've got a bunch of fixes that need to get released. Unfortunately I've contaminated the code with extra stuff that is just for me :) so I need to sanitise the code again :(
I'll work on getting a new release out over the next week. |
Shin Chogan
Blueprint Haus Get Off My Lawn
12
|
Posted - 2013.06.10 00:06:00 -
[59] - Quote
Treiq wrote:
EDIT3: How do you force an Alliance Corp List update?
It will be triggered once every 24 hours as part of the TEA_Cron.php process. If you want to know exactly when it will next update look in TEA/eve_corplist.php ... the time variable at the top is the unixtime of when it was last generated ... you could of course look at the timestamp on the file too :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.06.30 01:04:00 -
[60] - Quote
Bumse wrote:Quote:was this a one off ... ie if you force a pull for their api it all resolves itself ? If so then I had this occur to me once recently for some directors. I'm guessing some kind of CCP api glitch ? *shrug* Thanks for getting back! Unfortunately a full member check "Change profile" check on the account does not resolve the issue. It sticks harder than ... well, Jim Carrey in Cable Guy :)
Just another thought ... check they have both of the character info's checked in their api. |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.06.30 01:11:00 -
[61] - Quote
Reileen Kawahara wrote:I am using version 1.75 and getting a lot of problems where members try and register there API and for some reason errors out.
When they go back to try again they get the message saying the character is in use.
When I check the Characters database they are there and i have to remove it for them to do again.
Has anyone experienced this problem and is there a fix?
Thanks
The problem is that once they have put in the api and clicked on get characters the characters are put in the db ... then "something" happens and the session is lost, at this point there is no account or api stored in the DB just the list of toons in the characters table. This is why I wrote the clean_up_db script ... it removes orphaned characters from this table .. I run it every 2 mins :).
Sorry for the lack of progress ... I've had something of a disastrous week or so ... my VPS provider was hacked and I lost my VPS ... I've moved provider and I'm still picking up the pieces .. I'll look into things again soon I promise :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.07.10 12:12:00 -
[62] - Quote
Aurthes wrote:I am building a forum that uses this API checker. I seem to be having similar problems that other people do, which is that if users have any problems when entering their API it locks them from correcting things by saying that "you are trying to register with a character that already exists in our records".
Last night, I deleted the character from "smf_tea_characters", but I don't think that was sufficient. Should it be? I am also running in cron the script "clean_up_db".
I think I somehow need to delete an entry from another table, maybe "smf_tea_api"?
Also, can I just delete rows from these tables without hurting database integrity?
If that was the error then yes that should be sufficient. There are similar errors however that may require other tables to have entries removed ... it should all be done by the clean_up_db script. Users should have to wait no longer than the frequency of the cron job that runs that script.
As long as you don't delete the entries from smf_tea_api then all the other tables get repopulated as the API cron job runs. |
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.07.10 15:40:00 -
[63] - Quote
*phew* ... new version up :
https://docs.google.com/file/d/0BwWRlORSHGGeTXJydjgwT001c28/edit?usp=sharing
Sorry for the delays ... stuff has been busy and this was a non trivial merge :)
Changes : A load more error checking for api failures during a cron run. Bug fix in the clean_up_db script. Stop toons being stored in the db until registration has completed. (I hope)
It is this last one that appears to have been causing you guys the most problems. |
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.07.10 15:41:00 -
[64] - Quote
Manic Velocity wrote:Are there any plans to implement the corp/alliance checks via the SMF Scheduled Tasks feature, rather than setting up a cron job?
Hmmm ... I'd not added it to the list but I can see the need for it for people who don't have access to cron. |
Shin Chogan
Blueprint Haus Get Off My Lawn
13
|
Posted - 2013.07.11 15:40:00 -
[65] - Quote
Personally when I've been testing I uninstall, delete and then install new version. All the settings are in the DB and are not removed as part of the uninstall |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.15 10:29:00 -
[66] - Quote
Demitrios wrote:As a small mod, could you change the table colour in the rules from light green to green.
Trying to read white text on light green is somewhat annoying ;).
Also, nice work on getting the mod to delete the API details when you delete a user, much better than running a separate script to do the job, although when i did run the DB clear up, it said it removed an orphaned api key, but it didn't actually do it.
Still, gave me an idea on who's api keys need to be hell purged.
Thanks,
Demi
Ah .... my text is black ... never noticed that kind of problem :)
Which version of the db clean up script are you running ... the one I posted on the 10th ? And was it an orphaned key or character ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.16 07:29:00 -
[67] - Quote
I've noticed a load more "API is down I'm gonna wait" type messages (even more than usual) in my logs ... Thinking about this it could well be to do with how expired/deleted/restricted or old api keys when entered for CAK only API calls now return an http 403 forbidden rather than XML with an error code in ... All the error checking is going to need to be reworked.
:( |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.24 21:20:00 -
[68] - Quote
And as a nice person helped me discover ... it would appear that if you don't have php curl installed then the fallback raw socket method of fetching the API pages has been broken since CCP switched to https only. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.26 19:22:00 -
[69] - Quote
S'if wrote:I have just updated to the latest version 1.3.0 r176 as I was getting errors with the cron update script.
I now get the following whenever the cron job runs:
API System Screwed : bool(false)
Any ideas what this means? I have run the db_clean_up script a few times but that makes no difference.
Cheers
it means it is unable to fetch one of the api pages quite early on in the checking for a toon. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.29 14:27:00 -
[70] - Quote
S'if wrote:Shin Chogan wrote:S'if wrote:I have just updated to the latest version 1.3.0 r176 as I was getting errors with the cron update script.
I now get the following whenever the cron job runs:
API System Screwed : bool(false)
Any ideas what this means? I have run the db_clean_up script a few times but that makes no difference.
Cheers
it means it is unable to fetch one of the api pages quite early on in the checking for a toon. OK, so I'm guessing that has something to do with this message I get when I run the cleanup script. deleting orphaned api key : 145 deleting orphaned api key : 385 I get this message repeatedly everytime I run the cleanup script. Do I need to go into the database and manually delete stuff??
is it always the same numbers ?
|
|
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.07.29 15:28:00 -
[71] - Quote
New version uploaded :
r179
Changes :
- db_clean_up script now actually deletes orphaned api keys
- some clean up of undefined variables.
- Doesn't phone home to temars website to check for latest version number
- Doesn't add toons to the db from the master API key
- forces an update of the alliance list and the standings list when you load the admin settings page (assuming there is a key set and the cache on those has expired - must be > 24 hours since the last check).
|
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.07 21:59:00 -
[72] - Quote
Zenith Gravit wrote:Is there anyone willing to help me get the Jabber portion setup? I have Openfire server running with a external mySQL database, and it's working fine. I just can't seem to get TEA to communicate with it. I'm not sure if I'm entering the information properly or what.
Have you installed & configured the user service plugin in openfire ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.09 08:47:00 -
[73] - Quote
Zenith Gravit wrote:Max Botix wrote:So I've managed to install your mod, however I'm unclear about what I have to do with the cron scripts, how often do they need to run and which ones do I need to add to my crontab file?
Thanks I may have missed a file, but I recently has dealing with the same thing. I created cron jobs for everything in the TEA directory with CRON in the name. All the TS and Jabber files are running every minute and the other one every 5 minutes. It seems to be working fine for me, but if that's wrong I'd sure love to know.
I run TEA_Cron.php every 2 mins db_clean_up.php every 2 mins (alternating so they don't both run at the same time) and TEA_Jabber_Cron_Access.php every hour.
I hope since the last update you should no longer need to run db_clean_up on a continual basis. It might be worth running once in a while just in case though. As for the Jabber and TS ones ... how often you run them depends on how long you want people who have left the corp to continue accessing your Jabber and TS :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.09 08:51:00 -
[74] - Quote
Verinoch wrote:hey guys not sure how to fix this i read the posts but i get
API System Screwed - Can't fetch Toons : string '' (length=0) API System Screwed - Can't Fetch Standings : string '' (length=0) i treid 2 different api's and get same thing anyway to fix this?
Gonna need a little more here - where are you seing this error ? where have you entered this api ? what is the api type - corp/character ? what is the access mask ?
in general these error message is occurring for exactly the reason it says ... it hasn't been able to fetch a list of toons and standings from the api ... the length=0 bit means it hasn't got any kind of response at all and the request has timed out. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.09 13:56:00 -
[75] - Quote
Verinoch wrote:im getting this under the settings menu i put the api in save it an the errors show up at top left corner. api is character all access mask is 16777288
By settings I take it you mean the master api key for your forum ? ... Your going to need a corp key in there :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.09 15:22:00 -
[76] - Quote
Verinoch wrote:ok put in the corp api under configuration.teamars api.settings still get the same errors
do you have the php curl extensions installed ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.09 18:25:00 -
[77] - Quote
hmmm ... well fundamentally those errors indicate a failure to get the required stuff back from CCP's servers. I'd suggest running some packet traces. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.12 02:29:00 -
[78] - Quote
aldruitanzaro wrote:Hello when i the last version of TEA (1.3.0 r179 ) from themar e with you version from TEA Update i get a error
"Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php."
Thats nothing to do with this mod. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.12 16:03:00 -
[79] - Quote
aldruitanzaro wrote:i think but yet , if I remove the mod and take the Temar of it goes again somebody has an idea ? Shin Chogan wrote:aldruitanzaro wrote:Hello when i the last version of TEA (1.3.0 r179 ) from Temar e with you version from TEA Update i get a error
"Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.2. The above error might possibly go away if you execute the latest version of upgrade.php." Thats nothing to do with this mod.
The problem is when you did an upgrade there is a field in the db that states what version it is at ... when you updated from 2.0.2 this didn't happen. Not sure why the error only appears after you've installed temars ... it should be there all the time. I assume you are actually running 2.0.4 ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.12 20:56:00 -
[80] - Quote
Ash Darkvold wrote:Hey all,
I'm having issues getting the Jabber portion of TEA configured correctly. I'm able to see the groups I created in Openfire but am unable to write to the MySQL database.
The User Service plugin is already installed and enabled and the key has been entered into TEA.
I'm about ready to wipe the server and start fresh but I figured I'd see if anyone had any suggestions before I did anything drastic.
Silly question but you have added in the parameter to openfire that says which IP addresses are allowed to use the User service ? I seem to remember adding both the real IP of the server and 127.0.0.1. |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.12 20:57:00 -
[81] - Quote
Norian Lonark wrote:Norian Lonark wrote:Hi Shin,
I wonder if you could help me. I have upgraded to version r179 and I have an issue that none of my title rules are working. I have changed nothing on the settings from the original version and just wondered if there was something obvious that I could do to try and get working.
Cheers,
Nori. Figured it out. Thought I would post in case anyone else had similar problem. Basically I deleted and recreated all the rules then it worked like a charm. Don't ask me why though
hmmm ... I'll add it to the list of strange things that need investigating :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.13 15:51:00 -
[82] - Quote
Ash Darkvold wrote:Shin Chogan wrote: Silly question but you have added in the parameter to openfire that says which IP addresses are allowed to use the User service ? I seem to remember adding both the real IP of the server and 127.0.0.1.
Yeah, unfortunately I've tried that already. I can't see anything in the logs for SMF or MySQL that looks out of place so it's difficult to troubleshoot. Everything seems to be running fine but the users just never show up in Openfire. Reading back through old posts in this thread it seems to be a fairly common problem across all versions of TEA. I just can't help but feel like I'm missing something really simple.
I'm going to assume your mysql,forums, and openfire are on the same server and start with the basic config forgive me if you've done all this :
In openfire create at least one group that your users will be added to for example "Corp Members"
On the tea jabber settings page you should have localhost "db username for access to your openfire db" "password for user" "openfires db name"
then for username format and name format make sure you have at least #name#
The URL should be http://localhost:9090 if you are using defaults for the User service and you will obviously need the secret you set in Openfire for the User Service.
Make sure this is saved at this point.
Then you MUST add at least one rule pick an smf group and the openfire group you want them to belong to from the dropdowns you should be able to leave the name format blank but I always manually set it :)
One thing to remember at this point is that users have to set a password and pick their username in their forum profile it is not automatically picked up. The TEA_Jabber cron job will add people to openfire groups as their forum groups change if you have more than one group set up, and it will remove openfire accounts of people that no longer match any of the rules you've defined for Jabber. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.14 01:30:00 -
[83] - Quote
Ash Darkvold wrote:Shin Chogan wrote: I'm going to assume your mysql,forums, and openfire are on the same server and start with the basic config forgive me if you've done all this :
In openfire create at least one group that your users will be added to for example "Corp Members"
On the tea jabber settings page you should have localhost "db username for access to your openfire db" "password for user" "openfires db name"
then for username format and name format make sure you have at least #name#
The URL should be http://localhost:9090 if you are using defaults for the User service and you will obviously need the secret you set in Openfire for the User Service.
Make sure this is saved at this point.
Then you MUST add at least one rule pick an smf group and the openfire group you want them to belong to from the dropdowns you should be able to leave the name format blank but I always manually set it :)
One thing to remember at this point is that users have to set a password and pick their username in their forum profile it is not automatically picked up. The TEA_Jabber cron job will add people to openfire groups as their forum groups change if you have more than one group set up, and it will remove openfire accounts of people that no longer match any of the rules you've defined for Jabber.
All that checks out. Do I understand it correctly that the Openfire accounts are created by the cron job and not by SMF? If that's the case then I may have gotten a little close to an answer. I had the permissions for the TEA folder all screwed up and none of the jobs have been running. After I got that sorted out the jobs started running but all of them are throwing this error: *edited out*/foums/TEA/TEA_Cron.php: line 1: ?php: No such file or directory *edited out*/foums/TEA/TEA_Cron.php: line 3: syntax error near unexpected token `'../SSI.php'' *edited out*/foums/TEA/TEA_Cron.php: line 3: 'if (file_exists('../SSI.php;) && !defined('SMF'))' If that's irrelevant then I'm basically back to square one again. Thanks for all your help so far.
Not quite ... The accounts in openfire are created when the person modifies their profile to set their openfire password ... the cron job only modifies their groups or removes the account from openfire.
The users themselves HAVE to go to *domain*/index.php?action=profile;area=tea;sa=jabber and pick a username and enter a password there is nothing to do this bit automatically.
That said you do have a problem. Your Cron job isn't right you are thinking the script is executable ... it isn't you have to run php with the script as a parameter ... if you create a script in /etc/cron.d you need to add something like :
0 */1 * * * XXXXX /usr/bin/php5 /home/sites/lawnalliance.org/forum/TEA/TEA_Jabber_Cron_Access.php
where XXXXX is the user that your forum folder is owned by. |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.14 02:42:00 -
[84] - Quote
Ash Darkvold wrote:Shin Chogan wrote:
Not quite ... The accounts in openfire are created when the person modifies their profile to set their openfire password ... the cron job only modifies their groups or removes the account from openfire.
The users themselves HAVE to go to *domain*/index.php?action=profile;area=tea;sa=jabber and pick a username and enter a password there is nothing to do this bit automatically.
That said you do have a problem. Your Cron job isn't right you are thinking the script is executable ... it isn't you have to run php with the script as a parameter ... if you create a script in /etc/cron.d you need to add something like :
0 */1 * * * XXXXX /usr/bin/php5 /home/sites/lawnalliance.org/forum/TEA/TEA_Jabber_Cron_Access.php
where XXXXX is the user that your forum folder is owned by.
That's unfortunate then since I don't have much else left to try. I wish i knew where to look for any sort of error log that would at least point me in the right direction. As it stands I simply don't know enough to troubleshoot blindly. I would say that it's pretty apparent that TEA/SMF is able to read the Openfire database but is unable to write to it. Is it a possible firewall issue? Some outdated php extension? I wonder if I don't need to just try a different Linux distro and hope for the best.
Just to correct something ... TEA/SMF doesn't write to the Openfire DB ... it hits the http address you set with a list of parameters.
Try hitting *domain*/plugins/userService/userservice?type=add&secret=XXXX&username=XXXX&password=XXXX&name=XXXX&email=XXXX&groups=XXXX
replace XXXX with appropriate values. secret is the User Service secret set in your openfire config (and should be set in the SMF config page)
If that doesn't add a user then you have a config problem with openfire.
Packet traces may be your friend here |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.14 03:50:00 -
[85] - Quote
reaaaaalllly stupid question but you do have "Enable Jabber for TEA Mod" ticked ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.18 07:38:00 -
[86] - Quote
Bnizzle wrote:Having an issue where we cann get the Teamspeak admin section to load. From Admin -> Configuration -> Temar's Eve Api -> Teamspeak only returns a internal server error. From the logs i can see Quote:[Wed Aug 14 17:38:14 2013] [error] [client 139.168.197.61] PHP Fatal error: Class 'TeamSpeak3_Helper_Profiler' not found in /var/www/xxx/Sources/TS3_Class/TeamSpeak3.php on line 516, referer: http://xxxt/index.php?action=admin;area=tea;sa=ts We have changed the permissions on that section and deleted it and readded the files. I have also noticed that the smf_tea_ts_* tables are completely empty. Any help would be amazing!
Is there anything extra in your apache logs when you try and access the page ?
The code looks like it uses autoload to load in the appropriate class from the /var/www/xxx/Sources/TS3_Class/Helper Sub directory. Is there something about your php.ini that would stop that from working ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.18 09:13:00 -
[87] - Quote
Bnizzle wrote:Shin Chogan wrote:
Is there anything extra in your apache logs when you try and access the page ?
The code looks like it uses autoload to load in the appropriate class from the /var/www/xxx/Sources/TS3_Class/Helper Sub directory. Is there something about your php.ini that would stop that from working ?
We haven't change the php.ini file so as far as I am aware it should still be at default. I will keep looking through it though. I am seeing this error now when trying to access the TS admin area Quote:[Sun Aug 18 18:33:49 2013] [error] [client 123.3.246.7] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /var/www/xxx/Sources/TS3_Class/Transport/TCP.php on line 148,$e 148, referer: http://xxx/index.php?action=admin
Bingo ... we have a winner ... at least sort of ... it is running out of memory ... though you have 128MB allocated which is the default and the same as I have but my page TS page loads just fine ... Ant WTF is it doing using more than 128MB of Memory
Can you look in your xxx_settings table and look for any settings that start with tea_ts ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.19 16:21:00 -
[88] - Quote
Bnizzle wrote:I don't know what i was doing the other day but here are the settings with *tea_ts in tehm Quote:tea_ts_enable0 tea_ts_hostlocalhost tea_ts_qport10011 tea_ts_db_hostlocalhost tea_ts_db_userroot tea_ts_db_pw tea_ts_db_preteamspeak.clients tea_ts_method_online1 tea_ts_method_create1 tea_ts_warnm5 tea_ts_kickm30 tea_ts_usernameserveradmin tea_ts_password tea_ts_port9987 tea_ts_info tea_ts_dbid0 tea_ts_addrule_group-1 tea_ts_nf[#ct#] #name#
So it has been enabled at some point but is now disabled I've got nothing in my table except tea_ts_nf and tea_ts_addrule_group Can I suggest you remove all those rows from the settings table and see if the page loads then ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.19 21:07:00 -
[89] - Quote
Una Eris wrote:Getting a really nasty bug on one of my installations. http://i.imgur.com/pagUHvh.pngbasically says every api is not a toon api with all character. I've checked it on multiple installations but it seems to be stuck in this single machine. Already tried to clone the forums from one of the working ones, tried reinstalling, but still no luck. any ideas on what could be blocking it?
First thing that springs to mind is do you have the php curl libs installed on that box ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
14
|
Posted - 2013.08.20 15:10:00 -
[90] - Quote
Not sure but have a look in :
TEA/eve_standings.php and check that it is populated correctly. |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.20 18:30:00 -
[91] - Quote
ShadowandLight wrote:Shin Chogan wrote:Not sure but have a look in :
TEA/eve_standings.php and check that it is populated correctly. not TEA specific, but should I assume that port 443 needs to be open to receive / transmit data when checking the eve server via https? or is TEA still using HTTP?
No HTTP is not an option any more so only port 443 for api fetch ... what you need to open will depend very much on your router/firewall ... TEA makes an outbound connection so don't open it inbound (unless you run your forums on port 443 :) ) You will need to allow the connection outbound and allow back in any return traffic though |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.24 08:26:00 -
[92] - Quote
last time it was short_open_tag in your php.ini |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.26 10:29:00 -
[93] - Quote
You might want to use the current version ... 1.2.1 doesn't support the new style keys. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.26 10:31:00 -
[94] - Quote
Ynot Eyob wrote:When you run a standard check it takes 100 at a time, and you can see the Progress.
Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.
Quote: Im constantly getting a error 500 when running the full reset check, and it stops. This Means i have a number of people not getting updated with right Corp / Alliance tags and nore get their Avatar updated.
Else great work, keeping the mod running
Hmmmm ... I'd not considered the full check when I put in all the protections for CCP's fail. ... now it's my fail I'll take a look at that at some point. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.26 14:41:00 -
[95] - Quote
Ynot Eyob wrote:Shin Chogan wrote:Ynot Eyob wrote:When you run a standard check it takes 100 at a time, and you can see the Progress.
Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period. Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum. This Reset check takes all member at once which result tin a timeout and server 500 error.
Just to ensure we are on the same page you mean the 2 options :
Run Full Member Check Now Reset All Names, Avatars to those Set with Main Character
and the 2nd one is the one that is causing the error ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 08:35:00 -
[96] - Quote
Ynot Eyob wrote:Shin Chogan wrote:Ynot Eyob wrote:Shin Chogan wrote:Ynot Eyob wrote:When you run a standard check it takes 100 at a time, and you can see the Progress.
Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period. Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum. This Reset check takes all member at once which result tin a timeout and server 500 error. Just to ensure we are on the same page you mean the 2 options : Run Full Member Check Now Reset All Names, Avatars to those Set with Main Character and the 2nd one is the one that is causing the error ? If this is the case then it does no API fetching at all ... and error 500 is a server error ... can you get me what is in your apache error logs when you get this ? You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: XXXXXXX\TEA.php Line: 2408
You didn't say which option you are clicking on ... the line of code you refer to is from the "Run Full member check now" but that is the one that does a group at a time which doesn't gel with what you said about it doing it all in one go.
Can you also let me know which version you are running just to make sure I'm looking at the right line of code.
|
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 08:44:00 -
[97] - Quote
Ynot Eyob wrote:Server Windows 2003 IIS 6 MySQL 5 PHP 5
TEA Your Version: 1.3.0 r179
SMF 2.0.5
I just updated the SMF Database to 2.0.5 as it was 2.0.2 but that didnt help.
I really need to know exactly which link are you following. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 08:49:00 -
[98] - Quote
Ynot Eyob wrote:Im clicking on: Reset All Names, Avatars to those Set with Main Character
Sorry ... missed that in your last reply :)
Which makes no sense as line 2408 isn't executed when you go to that link. Can you paste the url that appears in the url bar when you get the 500 error ?
Does the error occur immediately or does it take some time to happen ?
Can you post the line of code plus a few either side so I can verify what it thinks it is doing ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 09:03:00 -
[99] - Quote
I can't follow that link it needs a login :)
There should be an error log entry for all error 500's ... I know nothing of IIS but if it doesn't then I'd hope there was an option to increase the logging level coz without it I can't help. Is there anything in the logs in SMF ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 09:49:00 -
[100] - Quote
Ynot Eyob wrote:Right so i found a log file: http://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;resetFilter: Only show the errors with the same message 8: Undefined variable: name Filter: Only show the errors from this fileFile: C:/XXXXX/Sources/TEA.php Line: 2736 And Filter: Only show the error messages of this URLhttp://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;reset Filter: Only show the errors with the same message 8: Undefined variable: count Filter: Only show the errors from this fileFile: C:/XXXXXX/Sources/TEA.php Line: 2799
Right ... that looks like you've got some inconsistencies in your db but I don't think that they would create a 500 error that is reserved for more serious problems like the mysql one :). That said there could do with some initialization to avoid those errors. |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 12:06:00 -
[101] - Quote
Ynot Eyob wrote:Ty,
Iv walked trough the database, and no Realnames was empty
Im still getting the same errors.
I think if i could fix this:
Check Full Member Now
With the error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 File: C:\XXXXXXX\TEA.php Line: 2408
It might solve the rest.
Line 2408: $users1 = $this -> smcFunc['db_query']('', "SELECT id_member, member_name, ID_GROUP FROM {db_prefix}members WHERE id_member <= ".$this -> lastid);
What i dont understant, but yet again im a .NET programmer not a php programmer, if i make an Echo on $this i get this: API System Screwed : bool(false)
Now how would that fit in with "Where id_member <="
Would this mean, that im not getting an ID from the API, and it cannot compare and string with an integer?
This would then make sence with the error 500.
And then my last question would be, 169 worked, so if it cant pull an API now, whats changes from 169 that could make this happen.
OK lets work on this bit ... 169 was the last build by the original author ... LOTS has changed since then mostly around error checking though CCP have also changed to https from http and changed the way they do errors - I don't know when you upgraded to my latest release.
You are running on Windows does that version of PHP have the curl functions ? Since CCP switched to https everything will fail if you don't have them.
I've uploaded a new test version :
https://docs.google.com/file/d/0BwWRlORSHGGeVFdZaE1rRV9pcUE/edit?usp=sharing
All it should do is die in a slightly different way if you don't have the CURL stuff available. if you echo $this again you should get something like
API System Screwed : NO CURL
I hope :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.27 12:46:00 -
[102] - Quote
Ynot Eyob wrote:Iv changed directly from 169 to yours 179
The old 169 i changed the TEAP to use https and that worked without issues.
PHP Version 5.2.17
cURL is installed
curl cURL support enabled cURL Information libcurl/7.21.0 OpenSSL/0.9.8q zlib/1.2.3
Your new version made no different
$Echo .$this API System Screwed : bool(false)
With the new version. I deleted all old TEA files before installing this.
I know dont fix what aint broken :p
There is a Lot broke in 169 :)
ok in TEA.php find :
echo "API System Screwed : \n";
it should be on line 187 or there abouts. ... the next line reads :
var_dump ($accnt);
change that to: var_dump ($accnt);die;
then run the TEA_cron.php from the command line so you can see the output.
edit ... another thought ... in the function single in TEA.php ... line 234 ish ... uncomment the first line so that is does echo $user . " - "; |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.28 09:10:00 -
[103] - Quote
Ynot Eyob wrote:Well iv updated to the latest version of PHP allowed on Windows 2003.
This is what i get now: API System Screwed - Can't fetch Toons : bool(false)
This is progress it is no longer failing at the first step but there obviously there are still problems.
I'm doing a big rewrite again ... old api key support is being removed due to CCP removing the vaguely helpful xml error codes. I'm removing the support for the raw socket fetch which is broken for https so to speed up the next release I'm just going to give an error message if you don't have CURL support in your PHP until I can work out the fun that is https over raw sockets.
As you suggest go back to 169 for now and I'll post back here when I'm done. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.28 09:37:00 -
[104] - Quote
Ynot Eyob wrote:Worse past is i hade to make a role back on the PHP version also, as about 10 other sites crashed on the strtotime compared with date.timestamp. Fx 5 killboards....
Trying to find 169 Again
Apparently PHP 5.4.17 abov is no longer support Windows 2003 server.... Joy
php5.dll cant be registreret has an entry point issue so Windows 2003 and XP cant registre it on the new versions.
v 169 I hope |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.29 14:27:00 -
[105] - Quote
Ynot Eyob wrote:So reinstalled 169 Again, and made the changes as before. Now i just get an API error. Iv made a test SMF install blank to play around with. Here is the funny part. Iv installed the newest cURL and i made a test script, first on Google news RSS and then directly on https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=XXXXX&vCode=XXXXXGoogles RSS print out fine but the account API shows nothing, not even an error just blank. This is the script i used as test: http://stackoverflow.com/questions/181082/how-do-i-install-curl-on-windows part 2 Unless CCP have blocked my server for API calls, im out of idears, it only runs one killboard and one SMF forum so nothing API heavy calling, oh and an ingame .NET application, which actually works well. Now i should be right, by saying that cURL should print out the XML from the API
Are you "running" the script from a browser ? If so you may find the browser is struggling to interpret the xml ... try using the view source option. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.29 15:09:00 -
[106] - Quote
Ynot Eyob wrote:nm, finally got it to Work Again with 169 \o/
I serious get anoind when people hardcode adresses into the code, i missed 3 Places in TEAP with https changes, only changed the one constant at the very top exspecting that to Work trough out the code.
Heh ... not me ... I'm innocent ... it caught me out when I had to update it.
That said ... I've not changed that aspect yet |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.30 15:20:00 -
[107] - Quote
Zenith Gravit wrote:Is there a version of TEA floating around that would work at say, an alliance level? So it would group people by corps as well instead of just corp/alliance/blue?
Just set your rules up "Right" and it will be fine. Main group = if you are in the alliance secondary group = your corp group. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.30 18:12:00 -
[108] - Quote
Zenith Gravit wrote:micromanage group assignment.
Yeah ... that is your problem ... You can do corp sections on your boards but you would have to create at least on group and tea rule per corp. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.08.31 06:24:00 -
[109] - Quote
Zenith Gravit wrote:Am I correct in thinking that a rule per corp isn't possible?
Yes you can do a rule per corp ... either as a main group or as a secondary group but you would need a smf group for each of your corps to go into. Its not that it's not possible it is just it takes a bit of work on the groups front.
A basic example you have :
SMF group called : Care Factor member LionGate Enterprises member LionGate Enterprises Director
you then have TEA rules :
Primary : If Care Factor then put in Care Factor member
Secondary: If LionGate Enterprises then put in LionGate Enterprises Member if LionGate Enterprises and Director then put in LionGate Enterprises Director.
Remember the corp AND director else you could put every director in eve in the group :)
|
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.09.05 17:20:00 -
[110] - Quote
Cayden Til wrote:Im getting this error since version 179 while deleting or updating a key in a member profile manually:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196
any ideas?
You only have 32MB of Memory allocated in your php config ... Personally I use 128MB |
|
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.09.05 18:47:00 -
[111] - Quote
Cayden Til wrote:Shin Chogan wrote:Cayden Til wrote:Im getting this error since version 179 while deleting or updating a key in a member profile manually:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7864320 bytes) in /var/www/web177/html/TEA/eve_corplist.php on line 8196
any ideas? You only have 32MB of Memory allocated in your php config ... Personally I use 128MB Ok i fixed this. Now the script always says the following: [ERROR] Character already listed with a different api key - xxxx But theres only one account witht that key....seems like the script screws some things?
well you might want to look in the tables ... find the character name xxxx and get the api key it is attached to ... then follow that through to a forum member id and see if that forum account still exists or if that member does have that api attached to it ... then look into why ?
if you've been using the Temars plugin for some time it is possible that you've got api keys in your db that don't belong to a forum account and you've got characters that are listed against api's that are not in the db any more.
The tables you want to look in are xxx_tea_characters, xxx_tea_api, and xxx_members. There is a script in the TEA directory db_clean_up.php which may be of use and tries to remove orphaned characters and api keys. |
Shin Chogan
Blueprint Haus Get Off My Lawn
15
|
Posted - 2013.09.11 08:45:00 -
[112] - Quote
The valid api key required to register does not hide the fields ... there is no option for that at the moment.
As far as scheduled tasks ... I'm afraid not ... I've been busy fixing the code for the changes CCP keep making ;) |
Shin Chogan
Blueprint Haus Get Off My Lawn
20
|
Posted - 2013.09.19 08:19:00 -
[113] - Quote
Zenith Gravit wrote:So I'm currently running into a problem with a specific person's group assignment not properly updating on the forum. I've tried adjusting the Rules and everyone else seems to be working, but TEA won't recognize that this person is a corp director. If I remove the director rule all directors get set to corp members, if I remove the corp rule all corp members get set to alliance members. It just seems to be this one person that it won't adjust properly. He is definitely a director so I'm not sure where the breakdown is happening.
If it is just one person then the rule can't be the problem. I'd take a look at the guys key - at a guess I'd say it doesn't have CharacterSheet enabled.
Check out the new version : https://forums.eveonline.com/default.aspx?g=posts&t=277780 It will ensure the mask is right when people add new keys and tell them if it is wrong for existing keys :) |
Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.15 14:22:00 -
[114] - Quote
Tahnil wrote:Is it somehow possible to configure TEA mod such that API keys may only show a single character of the account? I have a lot of trouble with people who are totally paranoid (or maybe PL spies), and do not want to register as long as they have to show all characters on their registered account.
Only with code changes. You need to tell them to remove the tinfoil ... the voices only speak to me anyway ;) |
Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.15 15:14:00 -
[115] - Quote
Tahnil wrote:And do you have an idea, which lines of code I would have to change?
They wonGÇÿt remove the tinfoil. Under normal circumstances I would force them to comply with our rules, but we are trying to cooperate with some other corporations, and unfortunately I am not in the position to force them.
To my mind it would be a real improvement if the SMF admin would have a configuration option with regards to single character / all characters.
Depends on exactly what version of the code you are looking at :)
Assuming you are using the last version I released of 1.3.1 (ie r179) then the 3 blocks you need to remove are 337->345, 2577->2582 and 3168->3172 ... but the actual line numbers may be different.
But in TEA.php Search for :
if ($accnt!="Account")
There should be 3 of them and just remove the whole if block.
Keep a backup just in case
|
Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.29 09:34:00 -
[116] - Quote
thiswaymucker wrote:does anyone know how to set it so to register it needs a FULL API ? (everything)
Which version are you using ? |
Shin Chogan
Blueprint Haus Get Off My Lawn
24
|
Posted - 2013.10.29 15:41:00 -
[117] - Quote
thiswaymucker wrote:TEA 1.3.0 r179
Then you can't ... there isn't any code in that release to look at the key mask. |
|
|
|